﻿function InitSelectStock(currentStockTable)
{
    $('#' + currentStockTable).datagrid({
        columns: [[
            { field: 'IsSelected', title: '选择', width: 60, checkbox: true },
            { field: 'Type', title: '品类名称', width: 60 },
            { field: 'Id', title: '存货编码', width: 100 },
            { field: 'BarCode', title: '条形码', width: 80 },
            { field: 'Name', title: '存货名称', width: 80 },
            { field: 'Specification', title: '规格', width: 60 },
            { field: 'UnitTransfer', title: '计量单位', width: 100 },
            { field: 'StandardPurchasePrice', title: '报价', width: 80 }
        ]],
        checkOnSelect: true,
        selectOnCheck: true
    });
}